package com.bootdo.system.mapper;

import com.bootdo.app.vo.miniprogram.UserGroupBuyVo;
import com.bootdo.system.domain.TbGroupBuying;
import com.bootdo.system.domain.TbGroupBuyingExample;
import io.swagger.models.auth.In;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

public interface TbGroupBuyingMapper {
    long countByExample(TbGroupBuyingExample example);

    int deleteByExample(TbGroupBuyingExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TbGroupBuying record);

    int insertSelective(TbGroupBuying record);

    List<TbGroupBuying> selectByExample(TbGroupBuyingExample example);

    TbGroupBuying selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TbGroupBuying record, @Param("example") TbGroupBuyingExample example);

    int updateByExample(@Param("record") TbGroupBuying record, @Param("example") TbGroupBuyingExample example);

    int updateByPrimaryKeySelective(TbGroupBuying record);

    int updateByPrimaryKey(TbGroupBuying record);
    UserGroupBuyVo selectGroupBuyLeaderInfo(@Param("userId")Integer userId, @Param("sid")String sid, @Param("goodsId")String goodsId);

	List<TbGroupBuying> getListByUser(@Param("userId")Integer userId,@Param("month") String month);

	List<TbGroupBuying> list(Map<String, Object> map);

	int count(Map<String, Object> map);
}